home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / overview / dtscpluslibrary / headers / applicationresources.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  3.1 KB  |  105 lines

  1. /*
  2.     File:        ApplicationResources.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by: C++ Application shell.
  7.                   ApplicationResources contains the common resource values for both resources and code.
  8.                   This header file is used from both code and resource files, that's why we are using #defines.
  9.     
  10.     Copyright:    Copyright © 1992-1999 by Apple Computer, Inc., All Rights Reserved.
  11.  
  12.                 You may incorporate this Apple sample source code into your program(s) without
  13.                 restriction. This Apple sample source code has been provided "AS IS" and the
  14.                 responsibility for its operation is yours. You are not permitted to redistribute
  15.                 this Apple sample source code as "Apple sample source code" after having made
  16.                 changes. If you're going to re-distribute the source, we require that you make
  17.                 it clear in the source that the code was descended from Apple sample source
  18.                 code, but that you've made changes.
  19.  
  20.     Change History (most recent first):
  21.                 8/18/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  22.                 
  23.  
  24. */
  25. // Define all the default application resource values
  26.  
  27. // _________________________________________________________________________________________________________ //
  28. // MENU VALUES
  29. // Note that each menu entry has a specified command number, where you just add the menu entry to the
  30. // menu itself, as in mApple = 128, and cAbout 1, and CaboutCommand = 1281. If you have more than 9 menu
  31. // entries, then just continue with 10, 11, as in 12910 (where mFile is 129).
  32.  
  33. // MBAR itself
  34. #define mAppMBAR                 100
  35.  
  36. // Apple menu
  37. #define    mApple                    128        
  38. #define    cAbout                    1
  39. #define cAboutCommand            1281
  40.  
  41. // File menu
  42. #define    mFile                    129    
  43. #define    cNew                    1
  44. #define cNewCommand                1291
  45. #define COpen                    2
  46. #define cOpenCommand            1292
  47. // --- 3
  48. #define    cClose                    4
  49. #define cCloseCommand            1294
  50. #define cSave                    5    
  51. #define cSaveCommand            1295
  52. #define cSaveAs                    6
  53. #define cSaveAsCommand            1296
  54. #define cRevert                    7
  55. #define cRevertCommand            1297
  56. // --- 8
  57. #define cPageSetup                9
  58. #define cPageSetupCommand        1299
  59. #define cPrint                    10
  60. #define cPrintCommand            12910
  61. // --- 11 
  62. #define    cQuit                    12
  63. #define cQuitCommand            12912
  64.  
  65.  
  66. // Edit menu
  67. #define    mEdit                    130
  68. #define    cUndo                    1
  69. #define cUndoCommand            1301
  70. #define    cCut                    3
  71. #define cCutCommand                1303
  72. #define    cCopy                    4
  73. #define cCopyCommand            1304
  74. #define    cPaste                    5
  75. #define cPasteCommand            1305
  76. #define    cClear                    6
  77. #define cClearCommand            1306
  78.  
  79.  
  80.  
  81. // _________________________________________________________________________________________________________ //
  82. // APPLE EVENTS
  83.  
  84. #define kCoreAEDispatchTable    500        // Core events 'aedt' resource
  85. #define cAppleEventReply        501
  86.  
  87. #define kGUIAEDispatchTable        600
  88.  
  89.  
  90.  
  91. // _________________________________________________________________________________________________________ //
  92. // USER INTERACTION RESOURCES
  93.  
  94. #define kUserAlert                100        // our default user alert for presenting core problems
  95.  
  96.  
  97. // _________________________________________________________________________________________________________ //
  98.  
  99.  
  100. /*    Change History (most recent last):
  101.   No        Init.    Date        Comment
  102.   1            khs        11/15/92    New file
  103.   2            khs        1/14/93        Cleanup
  104. */
  105.